Finds the only item with the specified key value and throws an exception if there is not exactly one item with that key value.

Namespace:  C1.LiveLinq.Indexing
Assembly:  C1.LiveLinq (in C1.LiveLinq.dll)

Syntax

C#
public virtual T FindSingle(
	TKey key
)
Visual Basic
Public Overridable Function FindSingle ( _
	key As TKey _
) As T

Parameters

key
Type: TKey
The key value to search for.

Return Value

The item of the collection that contains the specified key value, if found.

See Also